package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.RecipeInfoMapper;
import com.ruoyi.domain.RecipeInfo;
import com.ruoyi.service.IRecipeInfoService;

/**
 * RecipeInfoService业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Service
public class RecipeInfoServiceImpl implements IRecipeInfoService 
{
    @Autowired
    private RecipeInfoMapper recipeInfoMapper;

    /**
     * 查询RecipeInfo
     * 
     * @param recipeId RecipeInfo主键
     * @return RecipeInfo
     */
    @Override
    public RecipeInfo selectRecipeInfoByRecipeId(Long recipeId)
    {
        return recipeInfoMapper.selectRecipeInfoByRecipeId(recipeId);
    }

    /**
     * 查询RecipeInfo列表
     * 
     * @param recipeInfo RecipeInfo
     * @return RecipeInfo
     */
    @Override
    public List<RecipeInfo> selectRecipeInfoList(RecipeInfo recipeInfo)
    {
        return recipeInfoMapper.selectRecipeInfoList(recipeInfo);
    }

    /**
     * 新增RecipeInfo
     * 
     * @param recipeInfo RecipeInfo
     * @return 结果
     */
    @Override
    public int insertRecipeInfo(RecipeInfo recipeInfo)
    {
        return recipeInfoMapper.insertRecipeInfo(recipeInfo);
    }

    /**
     * 修改RecipeInfo
     * 
     * @param recipeInfo RecipeInfo
     * @return 结果
     */
    @Override
    public int updateRecipeInfo(RecipeInfo recipeInfo)
    {
        return recipeInfoMapper.updateRecipeInfo(recipeInfo);
    }

    /**
     * 批量删除RecipeInfo
     * 
     * @param recipeIds 需要删除的RecipeInfo主键
     * @return 结果
     */
    @Override
    public int deleteRecipeInfoByRecipeIds(Long[] recipeIds)
    {
        return recipeInfoMapper.deleteRecipeInfoByRecipeIds(recipeIds);
    }

    /**
     * 删除RecipeInfo信息
     * 
     * @param recipeId RecipeInfo主键
     * @return 结果
     */
    @Override
    public int deleteRecipeInfoByRecipeId(Long recipeId)
    {
        return recipeInfoMapper.deleteRecipeInfoByRecipeId(recipeId);
    }
}
